package com.example.foobar.business.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.foobar.entity.DaRetentionRates;
import com.example.foobar.param.DaRetentionRatesPageParam;
import com.example.foobar.vo.RetentionRateVO;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.Date;
import java.util.List;

public interface DaRetentionRatesService {
    boolean saveDaRetentionRates(DaRetentionRates daRetentionRates);

    boolean updateDaRetentionRates(DaRetentionRates daRetentionRates);

    boolean deleteDaRetentionRates(Long id);

    DaRetentionRates getById(Long id);

    Paging<DaRetentionRates> getDaRetentionRatesPageList(DaRetentionRatesPageParam daRetentionRatesPageParam);

    void insert(DaRetentionRates daRetentionRates);

    Paging<RetentionRateVO> getStroyRetentonRates(String uniacid, Date startDate, Date endDate, int dayCount);

    int selectCount(LambdaQueryWrapper<DaRetentionRates> wrapper);

    void remove(LambdaQueryWrapper<DaRetentionRates> wrapper);

    void save(List<DaRetentionRates> daRetentionRatesList);

    public void pullActiveDateYingma(Date date);
}
